import * as common from './common';

// 账户类型
const ACCOUNT_TYPE = [
  { label: '全部', value: -1 },
  { label: '会员', value: 0 },
  { label: '代理', value: 1 },
];

// 操作端口
const DEVICE_TYPE = [
  { label: '全部', value: '|' },
  { label: 'PC端', value: 0 },
  { label: 'H5', value: 1 },
  { label: '安卓', value: 2 },
  { label: 'IOS', value: 3 },
  // {label: 'PAD', value: 4},
];

// 风险审核状态
const WITHDRAW_EXCEPTION_STATUS = [
  { label: '全部', value: -1 },
  { label: '风险待审核', value: -3 },
  { label: '风险审核拒绝', value: -2 },
  { label: '风险审核通过', value: 0 },
  { label: '风险审核搁置', value: 1 },
];

// 风险类型
const RISK_TYPES = [
  { label: '全部', value: -1 },
  // { label: '正常提现', value: 0 },
  { label: '首提金额过大', value: 1 },
  { label: '单笔金额过大', value: 2 },
  { label: '当日金额过大', value: 3 },
  { label: '频繁提现', value: 4 },
  { label: '利润异常', value: 5 },
  { label: '7日累积金额过大', value: 6 },
  { label: '提现IP冲突', value: 7 },
  { label: '提现设备冲突', value: 8 },
];

// 查询类型
const RISK_SEARCH_TYPE = [
  { label: '账号名', value: 2 },
  { label: '姓名', value: 4 },
  { label: '提现单号', value: 1 },
  { label: '出款商户号', value: 6 },
  { label: '风险处理人', value: 3 },
];

/**
 * 平台余额
 */
const TRANSFER_PLATFORMS = [
  {
    label: '中心钱包',
    value: 0,
  },
  {
    label: '提现冻结金额',
    value: 101,
  },
  {
    label: 'AG',
    value: common.PLATFORM_ID_AG,
  },
  {
    label: 'eBET',
    value: common.PLATFORM_ID_EBET,
  },
  {
    label: 'PT',
    value: common.PLATFORM_ID_PT,
  },
  {
    label: '贝博体育',
    value: common.PLATFORM_ID_188,
  },
  {
    label: 'LB彩票',
    value: common.PLATFORM_ID_LB,
  },
  {
    label: '欢乐棋牌',
    value: common.PLATFORM_ID_HAPPY_CHESS,
  },
  {
    label: '贝博棋牌',
    value: common.PLATFORM_ID_GM_CHESS,
  },
  {
    label: '小金真人',
    value: common.PLATFORM_ID_SMALL_GOLD_REAL,
  },
  {
    label: '双赢彩票',
    value: common.PLATFORM_ID_WINWIN_LOTTERY,
  },
  {
    label: 'PP电子',
    value: common.PLATFORM_ID_PP,
  },
  {
    label: '5GM彩票',
    value: common.PLATFORM_ID_FIVE_GM_LOTTERY,
  },
  {
    label: 'MW捕鱼',
    value: common.PLATFORM_ID_MW_FISH,
  },
  {
    label: 'IM电竞',
    value: common.PLATFORM_ID_IM_ESPORT,
  },
  {
    label: '虚拟体育',
    value: common.PLATFORM_ID_VIRTUAL_SPORT,
  },
];

/**
 * 交易类型
 */
const MEMBER_ORDER_TYPE_DETAIL = [
  {
    label: '全部',
    value: -1,
    children: null,
  },
  {
    label: '存款',
    value: 1,
    children: null,
  },
  {
    label: '提款',
    value: 2,
    children: null,
  },
  {
    label: '转账',
    value: 3,
    children: null,
  },
  {
    label: '红利（包括加币-计入红利）',
    value: 4,
    children: [
      // { label: '全部', value: '' },
      { label: '首充红利', value: 12 },
      { label: '真人连赢红利', value: 13 },
      { label: '体育闯关红利', value: 14 },
      { label: '老虎机救援红利', value: 15 },
      { label: '真人闯关红利', value: 16 },
      { label: '春节活动-砸金蛋红利', value: 17 },
      { label: '春节活动-体育充提红利', value: 18 },
      { label: '春节活动-红包雨红利', value: 19 },
      { label: '红包', value: 1 },
      { label: '活动红利', value: 2 },
      { label: '端午节活动', value: 20 },
      { label: 'VIP奖励-升级礼金', value: 22 },
      { label: 'VIP奖励-生日礼金', value: 23 },
      { label: 'VIP奖励-每月VIP红包', value: 24 },
      { label: '英超活动', value: 26 },
    ],
  },
  {
    label: '提现退回',
    value: 6,
    children: null,
  },
  {
    label: '返水',
    value: 5,
    children: null,
  },
  {
    label: '加币（不计红利）',
    value: 14,
    children: [
      // { label: '全部', value: '' },
      { label: '人工充值', value: 3 },
      { label: '提现失败退回', value: 4 },
      { label: '转账补分', value: 5 },
      { label: '游戏补分-贝博体育', value: 6 },
      { label: '游戏补分-LB彩票', value: 7 },
      { label: '虚拟额度', value: 25 },
      // { label: '上分返利', value: 8 },
      // { label: '佣金调整', value: 9 },
    ],
  },
  // {label: '上级转入', value: 8},
  {
    label: '上分操作',
    value: 11,
    children: null,
  },
  // {label: '下分操作', value: 11},
  {
    label: '减币',
    value: 10,
    children: [
      // { label: '全部', value: '' },
      { label: '系统扣回', value: 10 },
      { label: '错误上分扣回', value: 11 },
      // { label: '佣金调整', value: 9 },
    ],
  },
];

/**
 * 交易状态
 */
const MEMBER_TRADE_STATUS_LIST = [
  { label: '全部', value: '' },
  { label: '处理中', value: 0 },
  { label: '失败', value: 2 },
  { label: '成功', value: 1 },
];

/**
 * 注单状态
 */
const NOTE_STATUS = [
  { label: '未结算', value: 0, color: 'orange' },
  { label: '已结算', value: 1, color: 'green' },
  { label: '已取消', value: 2, color: 'grey' },
  { label: '无效订单', value: 3, color: 'red' },
];

/**
 * 银行卡使用状态
 */
const MEMBER_BANK_STATUS = [{ label: '使用中', value: 0 }, { label: '已删除', value: 1 }];

const GAME_ID = [
  {
    channelId: common.PLATFORM_ID_AG,
    channelName: 'AG',
    label: 'AG真人',
    value: common.AG_REAL,
    gamePlatformId: common.PLATFORM_AG_REAL,
  },
  {
    channelId: common.PLATFORM_ID_AG,
    channelName: 'AG',
    label: 'AG捕鱼',
    value: common.AG_FISH,
    gamePlatformId: common.PLATFORM_AG_FISH,
  },
  {
    channelId: common.PLATFORM_ID_AG,
    channelName: 'AG',
    label: 'AG电子',
    value: common.AG_GAME,
    gamePlatformId: common.PLATFORM_AG_GAME,
  },
  {
    channelId: common.PLATFORM_ID_188,
    channelName: '贝博体育',
    label: '贝博体育',
    value: common.SPORTS_118,
    gamePlatformId: common.PLATFORM_GAME_SPORTS,
  },
  {
    channelId: common.PLATFORM_ID_PT,
    channelName: 'PT',
    label: 'PT电子',
    value: common.PT,
    gamePlatformId: common.PLATFORM_PT,
  },
  {
    channelId: common.PLATFORM_ID_EBET,
    channelName: 'eBET',
    label: 'eBET真人',
    value: common.EBET_REAL,
    gamePlatformId: common.PLATFORM_EBET_REAL,
  },
  {
    channelId: common.PLATFORM_ID_LB,
    channelName: 'LB彩票',
    label: 'LB彩票',
    value: common.LB_TICKET,
    gamePlatformId: common.PLATFORM_TICKET,
  },
  {
    channelId: common.PLATFORM_ID_HAPPY_CHESS,
    channelName: '欢乐棋牌',
    label: '欢乐棋牌',
    value: common.HAPPY_CHESS,
    gamePlatformId: common.PLATFORM_JOY_POKER,
  },
  {
    channelId: common.PLATFORM_ID_GM_CHESS,
    channelName: '贝博棋牌',
    label: '贝博棋牌',
    value: common.GM_CHESS,
    gamePlatformId: common.PLATFORM_GM_POKER,
  },
  {
    channelId: common.PLATFORM_ID_EBET,
    channelName: 'eBET',
    label: 'eBET电子',
    value: common.EBET_GAME,
    gamePlatformId: common.PLATFORM_EBET_GAME,
  },
  {
    channelId: common.PLATFORM_ID_SMALL_GOLD_REAL,
    channelName: '小金真人',
    label: '小金真人',
    value: common.SMALL_GOLD_REAL,
    gamePlatformId: common.PLATFORM_SMALL_GOLD_REAL,
  },
  {
    channelId: common.PLATFORM_ID_WINWIN_LOTTERY,
    channelName: '双赢彩票',
    label: '双赢彩票',
    value: common.WIN_WIN_LOTTERY,
    gamePlatformId: common.PLATFORM_WINWIN_LOTTERY,
  },
  {
    channelId: common.PLATFORM_ID_PP,
    channelName: 'PP电子',
    label: 'PP电子',
    value: common.PP_GAME,
    gamePlatformId: common.PLATFORM_PP_GAME,
  },
  {
    channelId: common.PLATFORM_ID_FIVE_GM_LOTTERY,
    channelName: '5GM彩票',
    label: '5GM彩票',
    value: common.FIVE_GM_LOTTERY,
    gamePlatformId: common.PLATFORM_FIVE_GM_LOTTERY,
  },
  {
    channelId: common.PLATFORM_ID_MW_FISH,
    channelName: 'MW捕鱼',
    label: 'MW捕鱼',
    value: common.MW_FISH,
    gamePlatformId: common.PLATFORM_MW_FISH,
  },
  {
    channelId: common.PLATFORM_ID_IM_ESPORT,
    channelName: 'IM电竞',
    label: 'IM电竞',
    value: common.IM_ESPORT,
    gamePlatformId: common.PLATFORM_IM_ESPORT,
  },
  // {
  //   channelId: PLATFORM_ID_VIRTUAL_SPORT,
  //   channelName: '虚拟体育',
  //   label: '虚拟体育',
  //   value: VIRTUAL_SPORT,
  //   gamePlatformId: common.PLATFORM_VIRTUAL_SPORT,
  // },
];

export {
  ACCOUNT_TYPE,
  DEVICE_TYPE,
  WITHDRAW_EXCEPTION_STATUS,
  RISK_TYPES,
  RISK_SEARCH_TYPE,
  TRANSFER_PLATFORMS,
  MEMBER_ORDER_TYPE_DETAIL,
  MEMBER_TRADE_STATUS_LIST,
  MEMBER_BANK_STATUS,
  NOTE_STATUS,
  GAME_ID,
};
